﻿using System.Collections.Generic;

namespace NExplorer
{
	internal class MenuBuilderManager : IMenuBuilderManager
	{
		private readonly List<IMenuBuilder> _menuBuilders = new List<IMenuBuilder>();

		public void AddMenuBuilder(IMenuBuilder menuBuilder)
		{
			_menuBuilders.Add(menuBuilder);
		}

		public void RemoveMenuBuilder(IMenuBuilder menuBuilder)
		{
			_menuBuilders.Remove(menuBuilder);
		}

		public ICollection<IMenuBuilder> MenuBuilders
		{
			get { return _menuBuilders;  }
		}
	}
}
